<div class="layui-hide-md">
  <div class="layui-panel site-menu" style="width: auto;">
    <ul class="layui-menu layui-menu-lg">
	<li class="search" style="padding-left:5px;padding-top:2px;padding-right:5px;">
	<form action="{:url('index/search',['keywords'=>$Request.param.keywords])}">
	<input  type="search" name="keywords" value="" aria-label="Search text" placeholder="搜索" class="layui-input">
	</form>
    </li>
	{if session('?user_id')}
	<li class="layui-nav-item" style="padding-left:25px;">
	<a class="fly-nav-avatar" href="javascript:;">
	<img src="{$user['user_img']}" >
	</a>
	</li>
	{else /}
	<li class="layui-nav-item" style="padding-left:25px;">
        <a class="iconfont icon-touxiang" href="{:url('login/index')}"></a>
		<a href="{:url('login/index')}"> {:lang('login')} </a>
		<a href="{:url('login/reg')}"> {:lang('register')} </a>
    </li>
	<li class="layui-nav-item" style="padding-left:25px;">
		<select name="language" style="width:100px;" lay-filter="language1" lay-verify="" id="language1">
		<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >{:lang('chinese')}</option>
		<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >{:lang('tChinese')}</option>
		<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >{:lang('english')}</option>
		</select>
	</li>
	{/if}
	
      <li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
        <div class="layui-menu-body-title">
          社区分类
        </div>
        <hr>
        <ul>
		{volist name="cateList" id="cate"} 
		<li {if condition="$cate.ename eq $Request.param.ename"} class="layui-this" {/if}> 
		<div class="layui-menu-body-title">
		<a href="{:url('article/cate',['ename' => $cate.ename])}"><i class="layui-icon {$cate.icon}"></i>  {:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}
		<span class="layui-font-12 layui-font-gray">>> {$cate.ename}</span>
		{if condition="$cate.is_hot eq 1"}<span class="layui-badge-dot"></span>{/if}
		</a>
		</div>
		</li> 
		{/volist}
        </ul>
      </li>
      
      <li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
        <div class="layui-menu-body-title">菜单</div>
        <hr>
        <ul>
		   {volist name="headlinks" id="vo"}
			<li class="">
				<div class="layui-menu-body-title">
					<a href="{$vo.slid_href}"><i class="layui-icon {$vo.slid_img}"></i><span> {$vo.slid_name} </span></a>
				</div>
			</li>
		  {/volist}
		  <li class="">
            <div class="layui-menu-body-title">
              <a href="/">
                <i class="layui-icon layui-icon-home" style="color: #009688;"></i><span> 回首页</span> 
                <span class="layui-font-12 layui-font-gray">index</span>
              </a>
            </div>
          </li> 
        </ul>
      </li>
    </ul>
  </div>
</div>
<!--
<div class="site-tree-mobile layui-hide">
  <i class="layui-icon layui-icon-spread-left"></i>
</div>
<div class="site-mobile-shade"></div>
-->



